home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / include / imake / Project.tmpl < prev    next >
Encoding:
Text File  |  1991-10-22  |  18.6 KB  |  662 lines

  1. XCOMM -------------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters
  3. XCOMM $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  4.  
  5. /*****************************************************************************
  6.  *                                                                           *
  7.  *                            DEFAULT DEFINITONS                             *
  8.  *                                                                           *
  9.  * The following section contains defaults for things that can be overridden *
  10.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  11.  *                                                                           *
  12.  ****************************************************************************/
  13.  
  14. #define ProjectX        5    /* do *not* change this line */
  15.  
  16. /*
  17.  * X-specific things
  18.  */
  19. #ifndef BuildServer
  20. #define BuildServer        YES
  21. #endif
  22. #ifndef BuildFonts
  23. #define BuildFonts        BuildServer
  24. #endif
  25. #ifndef BuildFontServer
  26. #define BuildFontServer        BuildServer
  27. #endif
  28. #ifndef BuildPex
  29. #define BuildPex        YES
  30. #endif
  31. #ifndef BuildPexClients
  32. #define BuildPexClients        BuildPex
  33. #endif
  34. #ifndef BuildPexExt
  35. #if BuildServer
  36. #define BuildPexExt        BuildPex
  37. #else
  38. #define BuildPexExt        NO
  39. #endif
  40. #endif
  41. #ifndef BuildXInputExt
  42. #define BuildXInputExt        NO
  43. #endif
  44. #ifndef BuildXInputLib
  45. #define BuildXInputLib        YES
  46. #endif
  47. #ifndef InstallLibManPages
  48. #define InstallLibManPages    YES
  49. #endif
  50. #ifndef InstallXtermSetUID
  51. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  52. #endif
  53. #ifndef InstallXinitConfig
  54. #define InstallXinitConfig    NO    /* install sample xinit config */
  55. #endif
  56. #ifndef InstallXdmConfig
  57. #define InstallXdmConfig    NO    /* install sample xdm config */
  58. #endif
  59. #ifndef XdmServersType            /* what Xservers files to use */
  60. #if BuildServer
  61. #define XdmServersType ws
  62. #else
  63. #define XdmServersType fs
  64. #endif
  65. #endif
  66. #ifndef InstallFSConfig
  67. #define InstallFSConfig        NO    /* install sample fs config */
  68. #endif
  69. #ifndef InstallAppDefFiles
  70. #define InstallAppDefFiles    YES    /* install application defaults */
  71. #endif
  72. #ifndef DebugLibX
  73. #define DebugLibX        NO    /* debugged X library */
  74. #endif
  75. #ifndef DebugLibXArchive
  76. #define DebugLibXArchive    NO    /* archive file of above */
  77. #endif
  78. #ifndef ProfileLibX
  79. #define ProfileLibX        NO    /* profiled X library */
  80. #endif
  81. #ifndef ProfileLibXArchive
  82. #define ProfileLibXArchive    NO    /* archive file of above */
  83. #endif
  84. #ifndef DebugOldLibX
  85. #define DebugOldLibX        NO    /* debugged old X library */
  86. #endif
  87. #ifndef ProfileOldLibX
  88. #define ProfileOldLibX        NO    /* profiled old X library */
  89. #endif
  90. #ifndef DebugLibXt
  91. #define DebugLibXt        NO    /* debugged toolkit library */
  92. #endif
  93. #ifndef ProfileLibXt
  94. #define ProfileLibXt        NO    /* profiled toolkit library */
  95. #endif
  96. #ifndef DebugLibXaw
  97. #define DebugLibXaw        NO    /* debugged widget library */
  98. #endif
  99. #ifndef ProfileLibXaw
  100. #define ProfileLibXaw        NO    /* profiled widget library */
  101. #endif
  102. #ifndef DebugLibXext
  103. #define DebugLibXext        NO    /* debugged Xext library */
  104. #endif
  105. #ifndef ProfileLibXext
  106. #define ProfileLibXext        NO    /* profiled Xext library */
  107. #endif
  108. #ifndef DebugLibXmu
  109. #define DebugLibXmu        NO    /* debugged Xmu library */
  110. #endif
  111. #ifndef ProfileLibXmu
  112. #define ProfileLibXmu        NO    /* profiled Xmu library */
  113. #endif
  114. #ifndef DebugLibXau
  115. #define DebugLibXau        NO    /* debugged auth library */
  116. #endif
  117. #ifndef ProfileLibXau
  118. #define ProfileLibXau        NO    /* profiled auth library */
  119. #endif
  120. #ifndef DebugLibXdmcp
  121. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  122. #endif
  123. #ifndef ProfileLibXdmcp
  124. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  125. #endif
  126. #ifndef ManDirectoryRoot
  127. #ifdef ProjectRoot
  128. #define ManDirectoryRoot Concat(ProjectRoot,/man)
  129. #ifndef XmanLocalSearchPath
  130. #define XmanLocalSearchPath ManDirectoryRoot
  131. #endif
  132. #else
  133. #if SystemV4
  134. #define ManDirectoryRoot /usr/share/man
  135. #else
  136. #define ManDirectoryRoot /usr/man
  137. #endif
  138. #endif
  139. #endif
  140. #ifndef ManSuffix
  141. #define ManSuffix    n        /* use just one tab or cpp will die */
  142. #endif
  143. #ifndef LibManSuffix
  144. #define LibManSuffix    3        /* use just one tab or cpp will die */
  145. #endif
  146. #ifndef HasXdmAuth
  147. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  148. #endif
  149. #ifndef BDFTOSNFFILT
  150. #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  151. #endif
  152. #ifndef SHELLPATH
  153. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  154. #endif
  155. #ifndef ZBDFTOSNFFILT
  156. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  157. #endif
  158. #ifndef FontFilters
  159. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  160. #endif
  161. #ifndef PrimaryScreenResolution
  162. #define PrimaryScreenResolution 72        /* a common resolution */
  163. #endif
  164. #ifndef DefaultFontPath
  165. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  166. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  167. #else
  168. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  169. #endif
  170. #endif
  171. #ifndef DefaultRGBDatabase
  172. #define DefaultRGBDatabase $(LIBDIR)/rgb
  173. #endif
  174. #ifndef FontCompilerFlags
  175. #define FontCompilerFlags -t
  176. #endif
  177. #ifndef ConnectionFlags
  178. #if (SystemV || SystemV4) && !HasSockets
  179. #define ConnectionFlags -DSTREAMSCONN
  180. #else
  181. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  182. #endif
  183. #endif
  184. #ifndef FontOSDefines
  185. #define FontOSDefines /**/
  186. #endif
  187. #ifndef FontDefines
  188. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  189. #endif
  190. #ifndef ExtensionOSDefines
  191. #define ExtensionOSDefines /**/
  192. #endif
  193. #ifndef ExtensionDefines
  194. #ifndef PexDefines
  195. #if BuildPexExt
  196. #define PexDefines -DPEXEXT
  197. #else
  198. #define PexDefines /**/
  199. #endif
  200. #endif
  201. #ifndef ShmDefines
  202. #if HasShm
  203. #define ShmDefines -DMITSHM
  204. #else
  205. #define ShmDefines /**/
  206. #endif
  207. #endif
  208. #ifndef XInputDefines
  209. #if BuildXInputExt
  210. #define XInputDefines -DXINPUT
  211. #else
  212. #define XInputDefines /**/
  213. #endif
  214. #endif
  215. #ifndef BaseExtensionDefines
  216. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC PexDefines ShmDefines XInputDefines
  217. #endif
  218. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  219. #endif
  220. #ifndef ServerExtraDefines
  221. #define ServerExtraDefines -DXDMCP
  222. #endif
  223. #ifndef ServerOSDefines
  224. #define ServerOSDefines /**/
  225. #endif
  226. #ifndef ServerDefines
  227. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  228. #endif
  229. #ifndef PexDipexDefines
  230. #define PexDipexDefines /**/
  231. #endif
  232. #ifndef PexDdpexDefines
  233. #define PexDdpexDefines /**/
  234. #endif
  235. #ifndef PexPhigsDefines
  236. #ifndef PexShmIPC
  237. #define PexShmIPC HasShm
  238. #endif
  239. #if PexShmIPC
  240. #define PexPhigsDefines /**/
  241. #else
  242. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  243. #endif
  244. #endif
  245. #ifndef PexClientDefines
  246. #define PexClientDefines -DPEX_SI_PHIGS
  247. #endif
  248. #ifndef PhigsInclude
  249. #ifdef UseInstalled
  250. #define PhigsInclude -I$(INCDIR)
  251. #else
  252. #define PhigsInclude -I$(BUILDINCDIR)
  253. #endif
  254. #endif
  255. #ifndef PexCDebugFlags
  256. #define PexCDebugFlags DebuggableCDebugFlags
  257. #endif
  258. #ifndef PexCCOptions
  259. #ifdef LibraryCCOptions
  260. #define PexCCOptions LibraryCCOptions
  261. #else
  262. #define PexCCOptions DefaultCCOptions
  263. #endif
  264. #endif
  265. #ifndef DefaultFSConfigFile
  266. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  267. #endif
  268. #ifndef BinDir
  269. #ifdef ProjectRoot
  270. #define BinDir Concat(ProjectRoot,/bin)
  271. #else
  272. #define BinDir /usr/bin/X11
  273. #endif
  274. #endif
  275. #ifndef BuildIncRoot
  276. #define BuildIncRoot $(TOP)
  277. #endif
  278. #ifndef BuildIncTop
  279. #define BuildIncTop ..        /* relative to $(TOP)/X11 */
  280. #endif
  281. #ifndef LibDir
  282. #define LibDir $(USRLIBDIR)/X11
  283. #endif
  284. #ifndef ConfigDir
  285. #define ConfigDir $(LIBDIR)/config
  286. #endif
  287. #ifndef LintlibDir
  288. #define LintlibDir $(USRLIBDIR)/lint
  289. #endif
  290. #ifndef FontDir
  291. #define FontDir $(LIBDIR)/fonts
  292. #endif
  293. #ifndef AdmDir
  294. #define AdmDir /usr/adm
  295. #endif
  296. #ifndef XinitDir
  297. #define XinitDir $(LIBDIR)/xinit
  298. #endif
  299. #ifndef XdmDir
  300. #define XdmDir $(LIBDIR)/xdm
  301. #endif
  302. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  303. #define XdmConfigurationSubdirectory config
  304. #endif
  305. #ifndef TwmDir
  306. #define TwmDir $(LIBDIR)/twm
  307. #endif
  308. #ifndef ManPath
  309. #define ManPath ManDirectoryRoot
  310. #endif
  311. #ifndef ManSourcePath
  312. #define ManSourcePath $(MANPATH)/man
  313. #endif
  314. #ifndef ManDir
  315. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  316. #endif
  317. #ifndef LibmanDir
  318. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  319. #endif
  320. #ifndef NlsDir
  321. #define NlsDir $(LIBDIR)/nls
  322. #endif
  323. #ifndef PexApiDir
  324. #define PexApiDir $(LIBDIR)/PEX
  325. #endif
  326. #ifndef XFileSearchPathBase
  327. #define XFileSearchPathBase $(LIBDIR)/%L/%T/%N%C%S:$(LIBDIR)/%l/%T/%N%C%S:$(LIBDIR)/%T/%N%C%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S
  328. #endif
  329. #ifndef XFileSearchPathDefault
  330. #ifdef XAppLoadDir
  331. #define XFileSearchPathDefault XAppLoadDir/%N%C%S:XAppLoadDir/%N%S:XFileSearchPathBase
  332. #else
  333. #define XFileSearchPathDefault XFileSearchPathBase
  334. #endif
  335. #endif
  336. #ifndef XAppLoadDir
  337. #define XAppLoadDir $(LIBDIR)/app-defaults
  338. #endif
  339. #ifndef XtErrorPrefix
  340. #define XtErrorPrefix /* as empty string */
  341. #endif
  342. #ifndef XtWarningPrefix
  343. #define XtWarningPrefix /* as empty string */
  344. #endif
  345. #ifndef OsNameDefines
  346. #define OsNameDefines /* as nothing */
  347. #endif
  348. #ifndef DefaultUserPath            /* for xdm */
  349. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  350. #endif
  351. #ifndef DefaultSystemPath        /* for xdm */
  352. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  353. #endif
  354. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  355. #define DefaultSystemShell BourneShell
  356. #endif
  357. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  358. #define UseCCMakeDepend NO
  359. #endif
  360. #ifndef DependDir
  361. #if UseCCMakeDepend
  362. #define DependDir $(SCRIPTSRC)
  363. #else
  364. #define DependDir $(UTILSRC)/makedepend
  365. #endif
  366. #endif
  367. #ifndef ContribDir
  368. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  369. #endif
  370. #ifndef DependCmd
  371. #define DependCmd $(DEPENDSRC)/makedepend
  372. #endif
  373. #ifndef RemoveTargetProgramByMoving
  374. #define RemoveTargetProgramByMoving NO
  375. #endif
  376. #ifndef AllocateLocalDefines
  377. #define AllocateLocalDefines /**/
  378. #endif
  379.  
  380. #ifndef ForceNormalLib
  381. #define ForceNormalLib (HasSaberC | HasGcc)
  382. #endif
  383. #ifndef SharedLibX
  384. #define SharedLibX HasSharedLibraries
  385. #endif
  386. #ifndef NormalLibX
  387. #define NormalLibX (!SharedLibX | ForceNormalLib)
  388. #endif
  389. #ifndef SharedOldLibX
  390. #define SharedOldLibX HasSharedLibraries
  391. #endif
  392. #ifndef NormalOldLibX
  393. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  394. #endif
  395. #ifndef SharedLibXt
  396. #define SharedLibXt HasSharedLibraries
  397. #endif
  398. #ifndef NormalLibXt
  399. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  400. #endif
  401. #ifndef SharedLibXaw
  402. #define SharedLibXaw HasSharedLibraries
  403. #endif
  404. #ifndef NormalLibXaw
  405. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  406. #endif
  407. #ifndef SharedLibXmu
  408. #define SharedLibXmu HasSharedLibraries
  409. #endif
  410. #ifndef NormalLibXmu
  411. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  412. #endif
  413. #ifndef SharedLibXau
  414. #define SharedLibXau NO        /* don't need shared form */
  415. #endif
  416. #ifndef NormalLibXau
  417. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  418. #endif
  419. #ifndef SharedLibXdmcp
  420. #define SharedLibXdmcp NO    /* don't need shared form */
  421. #endif
  422. #ifndef NormalLibXdmcp
  423. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  424. #endif
  425. #ifndef SharedLibXext
  426. #define SharedLibXext HasSharedLibraries
  427. #endif
  428. #ifndef NormalLibXext
  429. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  430. #endif
  431. #ifndef SharedLibXinput
  432. #define SharedLibXinput HasSharedLibraries
  433. #endif
  434. #ifndef NormalLibXinput
  435. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  436. #endif
  437. #ifndef SharedLibPhigs
  438. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  439. #endif
  440. #ifndef NormalLibPhigs
  441. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  442. #endif
  443.  
  444.  
  445. #ifndef DoInstallExtensionsIntoXlib
  446. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  447. #endif
  448.  
  449. XCOMM -------------------------------------------------------------------------
  450. XCOMM X Window System make variables; this need to be coordinated with rules
  451.  
  452. /*
  453.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  454.  * Makefile.
  455.  */
  456.           PATHSEP = /            /* for building filenames */
  457.         USRLIBDIR = UsrLibDir        /* libraries */
  458.            BINDIR = BinDir        /* programs */
  459.           INCROOT = IncRoot        /* base of where to put header files */
  460.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  461.       BUILDINCDIR = $(BUILDINCROOT)/X11
  462.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  463.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  464.            ADMDIR = AdmDir        /* server log files */
  465.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  466.         CONFIGDIR = ConfigDir        /* build configuration information */
  467.        LINTLIBDIR = LintlibDir        /* lint libraries */
  468.  
  469.           FONTDIR = FontDir        /* font directories */
  470.          XINITDIR = XinitDir        /* xinit config files */
  471.            XDMDIR = XdmDir        /* xdm config files */
  472.            TWMDIR = TwmDir        /* twm config files */
  473.           MANPATH = ManPath        /* top of manual page tree */
  474.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  475.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  476.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  477.            MANDIR = ManDir        /* man pages for commands */
  478.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  479.            NLSDIR = NlsDir        /* nls files */
  480.         PEXAPIDIR = PexApiDir        /* PEX support files */
  481.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  482.        FONTCFLAGS = FontCompilerFlags
  483.  
  484.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  485.  
  486. #ifdef UseInstalled
  487.             IMAKE = imake        /* assume BINDIR in path */
  488.            DEPEND = makedepend        /* assume BINDIR in path */
  489.               RGB = rgb            /* assume BINDIR in path */
  490. #ifdef SnfFonts
  491.             FONTC = bdftosnf        /* assume BINDIR in path */
  492. #else
  493.             FONTC = bdftopcf        /* assume BINDIR in path */
  494. #endif
  495.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  496.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  497. #else
  498.             IMAKE = $(IMAKESRC)/imake
  499.            DEPEND = DependCmd
  500.               RGB = $(RGBSRC)/rgb
  501. #ifdef SnfFonts
  502.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  503. #else
  504.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  505. #endif
  506.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  507.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  508. #endif
  509.  
  510.         CONFIGSRC = $(TOP)/config
  511.        DOCUTILSRC = $(TOP)/doc/util
  512.         CLIENTSRC = $(TOP)/clients
  513.           DEMOSRC = $(TOP)/demos
  514.            LIBSRC = /usr/lib
  515.           FONTSRC = $(TOP)/fonts
  516.        INCLUDESRC = $(TOP)/X11
  517.         SERVERSRC = $(TOP)/server
  518.           UTILSRC = $(TOP)/util
  519.         SCRIPTSRC = $(UTILSRC)/scripts
  520.        EXAMPLESRC = $(TOP)/examples
  521.        CONTRIBSRC = ContribDir
  522.            DOCSRC = $(TOP)/doc
  523.            RGBSRC = $(TOP)/rgb
  524.         DEPENDSRC = DependDir
  525.          IMAKESRC = $(CONFIGSRC)
  526.          XAUTHSRC = $(LIBSRC)/Xau
  527.           XLIBSRC = $(LIBSRC)/X
  528.            XMUSRC = $(LIBSRC)
  529.        TOOLKITSRC = $(LIBSRC)
  530.        AWIDGETSRC = $(LIBSRC)
  531.        OLDXLIBSRC = $(LIBSRC)/oldX
  532.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  533.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  534.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  535.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  536.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  537.          FSLIBSRC = $(FONTSRC)/lib/fs
  538.     FONTSERVERSRC = $(FONTSRC)/server
  539. /*     EXTENSIONSRC = $(TOP)/extensions */
  540.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  541.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  542.  
  543. /*
  544.  * _Use - makes a choice based on UseInstalled.
  545.  */
  546. #ifndef _Use
  547. #ifdef UseInstalled
  548. #define _Use(a,b) a
  549. #else
  550. #define _Use(a,b) b
  551. #endif
  552. #endif
  553.  
  554. /*
  555.  * _UseCat - combination of _Use and Concat.
  556.  *           exists to avoid problems with some preprocessors
  557.  */
  558. #ifndef _UseCat
  559. #if __STDC__ && !defined(UnixCpp)
  560. #ifdef UseInstalled
  561. #define _UseCat(a,b,c) a##c
  562. #else
  563. #define _UseCat(a,b,c) b##c
  564. #endif
  565. #else
  566. #ifdef UseInstalled
  567. #define _UseCat(a,b,c) a/**/c
  568. #else
  569. #define _UseCat(a,b,c) b/**/c
  570. #endif
  571. #endif
  572. #endif
  573.  
  574. #ifndef ShLibIncludeFile
  575. /* need this to make ANSI-style proprocessors happy */
  576. #define ShLibIncludeFile <noop.rules>
  577. #endif
  578.  
  579. #include ShLibIncludeFile
  580.  
  581. #if HasSharedLibraries
  582.         SOXLIBREV = SharedXlibRev
  583.           SOXTREV = SharedXtRev
  584.          SOXAWREV = SharedXawRev
  585.         SOOLDXREV = SharedOldXRev
  586.          SOXMUREV = SharedXmuRev
  587.         SOXEXTREV = SharedXextRev
  588.       SOXINPUTREV = SharedXinputRev
  589. #endif
  590.  
  591. #if !SharedLibXext
  592.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  593.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  594. #endif
  595. #if !SharedLibX
  596.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  597.              XLIB = $(EXTENSIONLIB) LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  598. #endif
  599.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  600.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  601.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  602.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  603. #if !SharedLibXmu
  604.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  605.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  606. #endif
  607. #if !SharedOldLibX
  608.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  609.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  610. #endif
  611. #if !SharedLibXt
  612.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  613.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  614. #endif
  615. #if !SharedLibXaw
  616.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  617.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  618. #endif
  619. #if !SharedLibXinput
  620.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  621.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  622. #endif
  623. #if !SharedLibPhigs
  624.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  625.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  626. #endif
  627.        DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
  628.           XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
  629.  
  630.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  631.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  632.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  633.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  634.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  635.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  636.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  637.  
  638. #ifndef XawClientDepLibs
  639. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  640. #endif
  641. #ifndef XawClientLibs
  642. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  643. #endif
  644.  
  645. #ifndef NeedDefaultDepLibs
  646. #define NeedDefaultDepLibs YES
  647. #endif
  648.  
  649. #if NeedDefaultDepLibs
  650. /*
  651.  * Individual libraries should override this
  652.  */
  653. #if HasSharedLibraries || UseInstalled
  654.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  655. #else
  656.           DEPLIBS = $(LOCAL_LIBRARIES)
  657. #endif
  658.          DEPLIBS1 = $(DEPLIBS)
  659.          DEPLIBS2 = $(DEPLIBS)
  660.          DEPLIBS3 = $(DEPLIBS)
  661. #endif /* NeedDefaultDepLibs */
  662.